package com.itheima.javabean;

public class Student {
    //1.必须私有成员变量，并为每个成员变量提供getter和setter方法
    private String name;
    private double score;
    //2.提供一个公开的无参构造方法
    public Student() {
    }
    public Student(String name, double score) {
        this.name = name;
        this.score = score;
    }



    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

}
